home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -websites- / wirenet / files / thor25_arexx.lha / FSE / Coolify.fse < prev    next >
Text File  |  1994-12-03  |  573b  |  38 lines

  1. /* Coolify text block - by Troels Walsted Hansen */
  2.  
  3. options results
  4.  
  5. YPOS
  6. currline = result
  7. XPOS
  8. currcolumn = result
  9. MSGLENGTH
  10. lastline = result
  11.  
  12. call open(tfh, "t:UncoolTempFile", W)
  13.  
  14. do i=currline to lastline
  15.     SETPOS 1 i
  16.     GETLINE
  17.     line = result
  18.  
  19.     if(line ~= "") then do
  20.         DELETELINES
  21.         i = i-1
  22.     end
  23.     else break
  24.  
  25.     call writeln(tfh, line)
  26. end
  27.  
  28. call close(tfh)
  29.  
  30. address command "Coolify >nil: t:UncoolTempFile t:CoolTempFile"
  31. call delete("t:UncoolTempFile")
  32.  
  33. SETPOS currcolumn currline
  34. INCLUDEFILE "t:CoolTempFile"
  35. call delete("t:CoolTempFile")
  36.  
  37. SETPOS currcolumn currline
  38.